<?php echo $this->render('header.phtml'); ?>
<h2><?php echo $this->escape($this->content_title);?></h2>
<style type="text/css">
table { color: #333333;font-family: Arial,Helvetica,sans-serif; font-size: 12px; border:1px solid #D2D2D2; empty-cells: show; }
table.update_table td,table.update_table th { border-bottom:1px solid #D2D2D2; border-right:1px solid #D2D2D2; text-align: center; }
table.update_table tr {vertical-align: top; height: 21px; }
</style>


<?php 
foreach($this->groups as $group_id=>$lessons) {
echo '<h2>'.$this->groupNames[$group_id].'</h2>';
echo '<table cellpadding="2" cellspacing="2" class="update_table"> ';

foreach($lessons as $l)
{
    echo '<tr>';
    echo '<td>'.$l->start_date.' '.$l->start_time.'</td>';
    echo '<td>';
    if(in_array($l->id,$this->links)) {
         echo '<img src="/public/images/checked.gif">' ;
    } 
    echo '</td>';
    echo '</tr>';
}

echo '</table>';
}
?>
<?php echo $this->render('footer.phtml'); ?>